import { request } from '@umijs/max';

export async function userTableData (body?:Record<string, any>, options?: Record<string, any>) {
  return request(`/system/role/list`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

export async function userTData (body?:Record<string, any>, options?: Record<string, any>) {
  return request('/system/role/listTree', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
export async function removeUser (body?:Record<string, any>, options?: Record<string, any>) {
  return request('/system/role/listTree', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
